<?php

namespace backend\modules\chart\controllers;

use backend\extensions\ApiBaseController;
use backend\services\echarts\OrderService;

class PlatformController extends ApiBaseController {
    
    /**
     * 平台订单图表
     * * */
    public function actionOrder() {
        $params = \Yii::$app->request->post();
        $rules = [
            [['platform_id'], 'default', 'value' => 1, 'message' => '平台ID'],
        ];
        $validate = $this->validateParams($params, $rules);
        if ($validate) {
            return $this->jsonError($validate);
        }
        //$data = OrderService::HeaderSummary($this->params['platform_id']);
        $data = json_decode('{"amount_today":"30862.56","amount_month":"2288365.77","amount_year":"72586651.54","discount_amount_today":"18357.64","discount_amount_month":"1895767.34","discount_amount_year":"39950162.57","total_today":"56","total_month":"3746","total_year":"83693","unit_amount_today":"629.85","unit_amount_month":"847.54","unit_amount_year":"1530.62","user_total_today":"147","user_total_month":"5847","user_total_year":"1063655"}');
        return $this->jsonSuccess($data);
    }
    
    /**
     * 平台订单图表
     * * */
    public function actionEcharts() {
        $params = \Yii::$app->request->post();
        $rules = [
            [['platform_id'], 'default', 'value' => 1, 'message' => '平台ID'],
        ];
        $validate = $this->validateParams($params, $rules);
        if ($validate) {
            return $this->jsonError($validate);
        }
        
        $data = json_decode('{"order_sales":[{"name":"销售金额","list":[{"key":"08-10","value":"205071.5"},{"key":"08-11","value":"1186395.49"},{"key":"08-12","value":"1202241.92"},{"key":"08-13","value":"1040906.92"},{"key":"08-14","value":"496195.73"},{"key":"08-15","value":"284485.27"},{"key":"08-16","value":"150265.81"},{"key":"08-17","value":"217483.19"},{"key":"08-18","value":"413800.07"},{"key":"08-19","value":"604260.25"},{"key":"08-20","value":"207522.25"},{"key":"08-21","value":"429099.08"},{"key":"08-22","value":"496460.07"},{"key":"08-23","value":"293489.63"},{"key":"08-24","value":"378918.87"},{"key":"08-25","value":"379298.42"},{"key":"08-26","value":"223420.82"},{"key":"08-27","value":"166262.27"},{"key":"08-28","value":"617964.34"},{"key":"08-29","value":"387591.79"},{"key":"08-30","value":"305143.13"},{"key":"08-31","value":"243393.48"},{"key":"09-01","value":"224468.64"},{"key":"09-02","value":"151280.62"},{"key":"09-03","value":"161841.88"},{"key":"09-04","value":"306147.12"},{"key":"09-05","value":"711838.4"},{"key":"09-06","value":"195136.4"},{"key":"09-07","value":"506790.15"},{"key":"09-08","value":"135227.93"}]},{"name":"退款金额","list":[{"key":"08-10","value":"29334.69"},{"key":"08-11","value":"293952.11"},{"key":"08-12","value":"301617.62"},{"key":"08-13","value":"160513.52"},{"key":"08-14","value":"81537.3"},{"key":"08-15","value":"59469.66"},{"key":"08-16","value":"25930.48"},{"key":"08-17","value":"56256.37"},{"key":"08-18","value":"51030.73"},{"key":"08-19","value":"105132.23"},{"key":"08-20","value":"66030.9"},{"key":"08-21","value":"72251.79"},{"key":"08-22","value":"78171.11"},{"key":"08-23","value":"83879.98"},{"key":"08-24","value":"65312.84"},{"key":"08-25","value":"53905.76"},{"key":"08-26","value":"39272.37"},{"key":"08-27","value":"29301.47"},{"key":"08-28","value":"70892.85"},{"key":"08-29","value":"54516.97"},{"key":"08-30","value":"42777.55"},{"key":"08-31","value":"34653.12"},{"key":"09-01","value":"35081.29"},{"key":"09-02","value":"17606.4"},{"key":"09-03","value":"24418.37"},{"key":"09-04","value":"43501.08"},{"key":"09-05","value":"243904"},{"key":"09-06","value":"28082.26"},{"key":"09-07","value":"104705.72"},{"key":"09-08","value":"14714.96"}]}],"order_unit_price":[{"name":"","list":[{"key":"08-10","value":"623.32"},{"key":"08-11","value":"1389.22"},{"key":"08-12","value":"874.99"},{"key":"08-13","value":"1028.56"},{"key":"08-14","value":"763.38"},{"key":"08-15","value":"628"},{"key":"08-16","value":"532.86"},{"key":"08-17","value":"481.16"},{"key":"08-18","value":"1112.37"},{"key":"08-19","value":"1650.98"},{"key":"08-20","value":"833.42"},{"key":"08-21","value":"1117.45"},{"key":"08-22","value":"1007.02"},{"key":"08-23","value":"724.67"},{"key":"08-24","value":"653.31"},{"key":"08-25","value":"603.02"},{"key":"08-26","value":"534.5"},{"key":"08-27","value":"513.16"},{"key":"08-28","value":"731.32"},{"key":"08-29","value":"539.07"},{"key":"08-30","value":"526.11"},{"key":"08-31","value":"469.87"},{"key":"09-01","value":"586.08"},{"key":"09-02","value":"577.41"},{"key":"09-03","value":"558.08"},{"key":"09-04","value":"534.29"},{"key":"09-05","value":"850.46"},{"key":"09-06","value":"531.71"},{"key":"09-07","value":"519.25"},{"key":"09-08","value":"526.18"}]}],"new_user":[{"name":"","list":[{"key":"08-10","value":"489"},{"key":"08-11","value":"687"},{"key":"08-12","value":"1564"},{"key":"08-13","value":"2050"},{"key":"08-14","value":"1103"},{"key":"08-15","value":"1052"},{"key":"08-16","value":"886"},{"key":"08-17","value":"956"},{"key":"08-18","value":"911"},{"key":"08-19","value":"624"},{"key":"08-20","value":"567"},{"key":"08-21","value":"616"},{"key":"08-22","value":"740"},{"key":"08-23","value":"712"},{"key":"08-24","value":"966"},{"key":"08-25","value":"935"},{"key":"08-26","value":"650"},{"key":"08-27","value":"609"},{"key":"08-28","value":"1110"},{"key":"08-29","value":"1095"},{"key":"08-30","value":"1062"},{"key":"08-31","value":"931"},{"key":"09-01","value":"661"},{"key":"09-02","value":"619"},{"key":"09-03","value":"642"},{"key":"09-04","value":"559"},{"key":"09-05","value":"796"},{"key":"09-06","value":"1096"},{"key":"09-07","value":"1327"},{"key":"09-08","value":"563"}]}],"channel":[{"name":"","list":[{"key":"云选联盟","value":{"amount_yesterday":"230053.88","amount_today":"31948.48","amount_month":"1000131.93","amount_year":"23727127.72"}},{"key":"自然流量","value":{"amount_yesterday":"191053.51","amount_today":"44452.77","amount_month":"860022.78","amount_year":"18939236.45"}},{"key":"员工内购会（门店）","value":{"amount_yesterday":"243.75","amount_today":"949.50","amount_month":"12363.38","amount_year":"3238951.91"}},{"key":"北京一汽大众","value":{"amount_yesterday":"2726.50","amount_today":"24973.81","amount_month":"74754.31","amount_year":"2331668.29"}},{"key":"上海亦芯-微信朋友圈","value":{"amount_yesterday":"649.00","amount_today":"3101.92","amount_month":"21532.55","amount_year":"1684924.58"}},{"key":"玩转旅购","value":{"amount_yesterday":"10380.65","amount_today":"2242.34","amount_month":"46039.78","amount_year":"978415.23"}},{"key":"亿点连接","value":{"amount_yesterday":"10511.02","amount_today":"2764.20","amount_month":"46989.19","amount_year":"929957.18"}},{"key":"朋友圈-世纪飞扬","value":{"amount_yesterday":"15951.47","amount_today":"584.60","amount_month":"92541.49","amount_year":"803598.38"}},{"key":"Tx","value":{"amount_yesterday":"2700.98","amount_today":"1359.50","amount_month":"30456.92","amount_year":"618929.03"}},{"key":"艾禧汇","value":{"amount_yesterday":"18644.87","amount_today":"10848.53","amount_month":"84205.92","amount_year":"413932.70"}},{"key":"雅诗兰黛TR-短信","value":{"amount_yesterday":"280.50","amount_today":"1864.20","amount_month":"16508.28","amount_year":"184022.30"}},{"key":"预购包裹拉新卡片","value":{"amount_yesterday":"139.20","amount_today":"262.50","amount_month":"1224.45","amount_year":"103704.43"}},{"key":"雅诗兰黛TR-公众号","value":{"amount_yesterday":"2584.00","amount_today":"407.40","amount_month":"8222.75","amount_year":"103085.41"}},{"key":"自营会员购公众号","value":{"amount_yesterday":"2240.35","amount_today":"442.00","amount_month":"4296.70","amount_year":"65449.08"}},{"key":"集翎","value":{"amount_yesterday":"672.70","amount_today":"553.00","amount_month":"18717.18","amount_year":"27325.60"}},{"key":"贝选国际贸易(海南)有限公司","value":{"amount_yesterday":"4599.92","amount_today":"5881.63","amount_month":"22079.33","amount_year":"23598.37"}},{"key":"短信营销(废弃)","value":{"amount_yesterday":"4222.85","amount_today":"1785.75","amount_month":"6285.10","amount_year":"18208.56"}}]}],"wechat":[{"name":"打开次数","list":[{"key":"20230809","value":"16741"},{"key":"20230810","value":"12591"},{"key":"20230811","value":"34081"},{"key":"20230812","value":"28158"},{"key":"20230813","value":"56340"},{"key":"20230814","value":"39284"},{"key":"20230815","value":"24792"},{"key":"20230816","value":"16874"},{"key":"20230817","value":"21199"},{"key":"20230818","value":"19944"},{"key":"20230819","value":"17353"},{"key":"20230820","value":"13698"},{"key":"20230821","value":"17421"},{"key":"20230822","value":"20130"},{"key":"20230823","value":"17624"},{"key":"20230824","value":"18950"},{"key":"20230825","value":"19183"},{"key":"20230826","value":"15415"},{"key":"20230827","value":"15645"},{"key":"20230828","value":"45347"},{"key":"20230829","value":"38162"},{"key":"20230830","value":"24135"},{"key":"20230831","value":"22046"},{"key":"20230901","value":"15738"},{"key":"20230902","value":"12086"},{"key":"20230903","value":"11506"},{"key":"20230904","value":"18570"},{"key":"20230905","value":"29474"},{"key":"20230906","value":"19938"},{"key":"20230907","value":"34542"}]},{"name":"访问次数","list":[{"key":"20230809","value":"99385"},{"key":"20230810","value":"83415"},{"key":"20230811","value":"184289"},{"key":"20230812","value":"218157"},{"key":"20230813","value":"569871"},{"key":"20230814","value":"294600"},{"key":"20230815","value":"200196"},{"key":"20230816","value":"121607"},{"key":"20230817","value":"151011"},{"key":"20230818","value":"146648"},{"key":"20230819","value":"123436"},{"key":"20230820","value":"102795"},{"key":"20230821","value":"126964"},{"key":"20230822","value":"147390"},{"key":"20230823","value":"135266"},{"key":"20230824","value":"147381"},{"key":"20230825","value":"152791"},{"key":"20230826","value":"128803"},{"key":"20230827","value":"118519"},{"key":"20230828","value":"265808"},{"key":"20230829","value":"249863"},{"key":"20230830","value":"178856"},{"key":"20230831","value":"164180"},{"key":"20230901","value":"116920"},{"key":"20230902","value":"92168"},{"key":"20230903","value":"91168"},{"key":"20230904","value":"146042"},{"key":"20230905","value":"209185"},{"key":"20230906","value":"152890"},{"key":"20230907","value":"226095"}]},{"name":"访问人数","list":[{"key":"20230809","value":"5794"},{"key":"20230810","value":"5656"},{"key":"20230811","value":"7132"},{"key":"20230812","value":"7789"},{"key":"20230813","value":"9032"},{"key":"20230814","value":"9347"},{"key":"20230815","value":"9228"},{"key":"20230816","value":"7805"},{"key":"20230817","value":"9221"},{"key":"20230818","value":"8952"},{"key":"20230819","value":"7501"},{"key":"20230820","value":"6301"},{"key":"20230821","value":"7436"},{"key":"20230822","value":"8201"},{"key":"20230823","value":"7312"},{"key":"20230824","value":"8465"},{"key":"20230825","value":"8411"},{"key":"20230826","value":"6731"},{"key":"20230827","value":"7239"},{"key":"20230828","value":"10648"},{"key":"20230829","value":"9122"},{"key":"20230830","value":"8632"},{"key":"20230831","value":"8050"},{"key":"20230901","value":"6795"},{"key":"20230902","value":"6049"},{"key":"20230903","value":"5739"},{"key":"20230904","value":"6896"},{"key":"20230905","value":"8685"},{"key":"20230906","value":"8253"},{"key":"20230907","value":"10182"}]},{"name":"新用户数","list":[{"key":"20230809","value":"944"},{"key":"20230810","value":"1011"},{"key":"20230811","value":"1432"},{"key":"20230812","value":"2434"},{"key":"20230813","value":"3039"},{"key":"20230814","value":"2014"},{"key":"20230815","value":"2043"},{"key":"20230816","value":"1471"},{"key":"20230817","value":"1861"},{"key":"20230818","value":"2098"},{"key":"20230819","value":"1310"},{"key":"20230820","value":"1096"},{"key":"20230821","value":"1042"},{"key":"20230822","value":"1259"},{"key":"20230823","value":"1287"},{"key":"20230824","value":"2032"},{"key":"20230825","value":"1941"},{"key":"20230826","value":"1055"},{"key":"20230827","value":"1207"},{"key":"20230828","value":"1932"},{"key":"20230829","value":"1610"},{"key":"20230830","value":"1505"},{"key":"20230831","value":"1440"},{"key":"20230901","value":"963"},{"key":"20230902","value":"1162"},{"key":"20230903","value":"1050"},{"key":"20230904","value":"1024"},{"key":"20230905","value":"1488"},{"key":"20230906","value":"2159"},{"key":"20230907","value":"1990"}]}],"goods":[{"name":"","list":[{"key":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","value":{"today":{"name":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","barcode":"729238161825","cit_code":"GP1003935","count":"61","amount":"9875.00"},"yesterday":{"name":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","barcode":"729238161825","cit_code":"GP1003935","count":"61","amount":"12245.00"},"month":{"name":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","barcode":"729238161825","cit_code":"GP1003935","count":"61","amount":"448"}}},{"key":"欧舒丹玫瑰之心润手霜","value":{"today":{"name":"欧舒丹玫瑰之心润手霜","barcode":"3253581760727","cit_code":"GP1035439","count":"23","amount":"347.76"},"yesterday":{"name":"欧舒丹玫瑰之心润手霜","barcode":"3253581760727","cit_code":"GP1035439","count":"23","amount":"1391.04"},"month":{"name":"欧舒丹玫瑰之心润手霜","barcode":"3253581760727","cit_code":"GP1035439","count":"23","amount":"43"}}},{"key":"资生堂百优全新精纯乳霜套装 75ml+75ml","value":{"today":{"name":"资生堂百优全新精纯乳霜套装 75ml+75ml","barcode":"729238170155","cit_code":"GP1017220","count":"18","amount":"3074.40"},"yesterday":{"name":"资生堂百优全新精纯乳霜套装 75ml+75ml","barcode":"729238170155","cit_code":"GP1017220","count":"18","amount":"2305.80"},"month":{"name":"资生堂百优全新精纯乳霜套装 75ml+75ml","barcode":"729238170155","cit_code":"GP1017220","count":"18","amount":"33"}}},{"key":"欧舒丹五合一草本菁纯修护洗发水","value":{"today":{"name":"欧舒丹五合一草本菁纯修护洗发水","barcode":"3253581750797","cit_code":"GP1041049","count":"14","amount":"1620.00"},"yesterday":{"name":"欧舒丹五合一草本菁纯修护洗发水","barcode":"3253581750797","cit_code":"GP1041049","count":"14","amount":"1094.60"},"month":{"name":"欧舒丹五合一草本菁纯修护洗发水","barcode":"3253581750797","cit_code":"GP1041049","count":"14","amount":"29"}}},{"key":"尊尼获加黑牌苏格兰威士忌40% 1L","value":{"today":{"name":"尊尼获加黑牌苏格兰威士忌40% 1L","barcode":"5000267023601","cit_code":"GJ1005862","count":"8","amount":"188.80"},"yesterday":{"name":"尊尼获加黑牌苏格兰威士忌40% 1L","barcode":"5000267023601","cit_code":"GJ1005862","count":"8","amount":"188.80"},"month":{"name":"尊尼获加黑牌苏格兰威士忌40% 1L","barcode":"5000267023601","cit_code":"GJ1005862","count":"8","amount":"68"}}},{"key":"雅诗兰黛赋活修护滋润套装 200ml+50ml+ 75ml","value":{"today":{"name":"雅诗兰黛赋活修护滋润套装 200ml+50ml+ 75ml","barcode":"887167571068","cit_code":"GP1025925","count":"7","amount":"5697.00"},"yesterday":{"name":"雅诗兰黛赋活修护滋润套装 200ml+50ml+ 75ml","barcode":"887167571068","cit_code":"GP1025925","count":"7","amount":"18040.50"},"month":{"name":"雅诗兰黛赋活修护滋润套装 200ml+50ml+ 75ml","barcode":"887167571068","cit_code":"GP1025925","count":"7","amount":"192"}}},{"key":"欧舒丹5合1草本菁纯平衡洗发露 500ml","value":{"today":{"name":"欧舒丹5合1草本菁纯平衡洗发露 500ml","barcode":"3253581595220","cit_code":"GP1007182","count":"7","amount":"725.52"},"yesterday":{"name":"欧舒丹5合1草本菁纯平衡洗发露 500ml","barcode":"3253581595220","cit_code":"GP1007182","count":"7","amount":"897.12"},"month":{"name":"欧舒丹5合1草本菁纯平衡洗发露 500ml","barcode":"3253581595220","cit_code":"GP1007182","count":"7","amount":"21"}}},{"key":"欧舒丹乳木果润手霜四件装 30ml*4","value":{"today":{"name":"欧舒丹乳木果润手霜四件装 30ml*4","barcode":"3253581741580","cit_code":"GP1035435","count":"7","amount":"1253.36"},"yesterday":{"name":"欧舒丹乳木果润手霜四件装 30ml*4","barcode":"3253581741580","cit_code":"GP1035435","count":"7","amount":"5979.67"},"month":{"name":"欧舒丹乳木果润手霜四件装 30ml*4","barcode":"3253581741580","cit_code":"GP1035435","count":"7","amount":"51"}}},{"key":"安热沙金灿倍护防晒乳 90ml","value":{"today":{"name":"安热沙金灿倍护防晒乳 90ml","barcode":"729238161726","cit_code":"GP1019193","count":"6","amount":"817.00"},"yesterday":{"name":"安热沙金灿倍护防晒乳 90ml","barcode":"729238161726","cit_code":"GP1019193","count":"6","amount":"2472.50"},"month":{"name":"安热沙金灿倍护防晒乳 90ml","barcode":"729238161726","cit_code":"GP1019193","count":"6","amount":"96"}}},{"key":"欧舒丹马鞭草清新润手霜 75ml","value":{"today":{"name":"欧舒丹马鞭草清新润手霜 75ml","barcode":"3253581306239","cit_code":"GP1005564","count":"6","amount":"432.20"},"yesterday":{"name":"欧舒丹马鞭草清新润手霜 75ml","barcode":"3253581306239","cit_code":"GP1005564","count":"6","amount":"518.64"},"month":{"name":"欧舒丹马鞭草清新润手霜 75ml","barcode":"3253581306239","cit_code":"GP1005564","count":"6","amount":"17"}}}]},{"name":"","list":[{"key":"古驰绮梦栀子香型女士香水50ml","value":{"today":{"name":"古驰绮梦栀子香型女士香水50ml","barcode":"3616302022489","cit_code":"GP1016832","count":"1","amount":"460.00"},"yesterday":{"name":"古驰绮梦栀子香型女士香水50ml","barcode":"3616302022489","cit_code":"GP1016832","count":"146","amount":"34960.00"},"month":{"name":"古驰绮梦栀子香型女士香水50ml","barcode":"3616302022489","cit_code":"GP1016832","count":"159","amount":"38180.00"}}},{"key":"蔻依仙境花园系列香氛-木兰诗语套装","value":{"today":{"name":"蔻依仙境花园系列香氛-木兰诗语套装","barcode":"3616304474712","cit_code":"GP1058468","count":"0","amount":"0.00"},"yesterday":{"name":"蔻依仙境花园系列香氛-木兰诗语套装","barcode":"3616304474712","cit_code":"GP1058468","count":"76","amount":"38684.00"},"month":{"name":"蔻依仙境花园系列香氛-木兰诗语套装","barcode":"3616304474712","cit_code":"GP1058468","count":"76","amount":"38684.00"}}},{"key":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","value":{"today":{"name":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","barcode":"729238161825","cit_code":"GP1003935","count":"61","amount":"9875.00"},"yesterday":{"name":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","barcode":"729238161825","cit_code":"GP1003935","count":"66","amount":"12245.00"},"month":{"name":"肌肤之钥光凝润采妆前霜 （滋润型）长管隔离 37ml","barcode":"729238161825","cit_code":"GP1003935","count":"448","amount":"70980.00"}}},{"key":"碧欧泉男士水动力1,2,3,套装","value":{"today":{"name":"碧欧泉男士水动力1,2,3,套装","barcode":"4894374543517","cit_code":"GP1048111","count":"6","amount":"1606.50"},"yesterday":{"name":"碧欧泉男士水动力1,2,3,套装","barcode":"4894374543517","cit_code":"GP1048111","count":"59","amount":"19278.00"},"month":{"name":"碧欧泉男士水动力1,2,3,套装","barcode":"4894374543517","cit_code":"GP1048111","count":"80","amount":"28496.25"}}},{"key":"肌肤之钥御龄防晒乳霜套装 50ml + 50ml","value":{"today":{"name":"肌肤之钥御龄防晒乳霜套装 50ml + 50ml","barcode":"729238166530","cit_code":"GP1003971","count":"0","amount":"0.00"},"yesterday":{"name":"肌肤之钥御龄防晒乳霜套装 50ml + 50ml","barcode":"729238166530","cit_code":"GP1003971","count":"55","amount":"33728.75"},"month":{"name":"肌肤之钥御龄防晒乳霜套装 50ml + 50ml","barcode":"729238166530","cit_code":"GP1003971","count":"56","amount":"34565.00"}}},{"key":"肌肤之钥净采洁面膏（湿润型）","value":{"today":{"name":"肌肤之钥净采洁面膏（湿润型）","barcode":"729238171640","cit_code":"GP1020268","count":"0","amount":"0.00"},"yesterday":{"name":"肌肤之钥净采洁面膏（湿润型）","barcode":"729238171640","cit_code":"GP1020268","count":"49","amount":"10134.30"},"month":{"name":"肌肤之钥净采洁面膏（湿润型）","barcode":"729238171640","cit_code":"GP1020268","count":"54","amount":"11558.80"}}},{"key":"海蓝之谜沁润修护精萃水 100ml","value":{"today":{"name":"海蓝之谜沁润修护精萃水 100ml","barcode":"747930121688","cit_code":"GP1022841","count":"3","amount":"1558.05"},"yesterday":{"name":"海蓝之谜沁润修护精萃水 100ml","barcode":"747930121688","cit_code":"GP1022841","count":"49","amount":"6751.55"},"month":{"name":"海蓝之谜沁润修护精萃水 100ml","barcode":"747930121688","cit_code":"GP1022841","count":"57","amount":"9867.65"}}},{"key":"海蓝之谜润唇霜 9g","value":{"today":{"name":"海蓝之谜润唇霜 9g","barcode":"747930112433","cit_code":"GP1004297","count":"0","amount":"0.00"},"yesterday":{"name":"海蓝之谜润唇霜 9g","barcode":"747930112433","cit_code":"GP1004297","count":"40","amount":"11220.00"},"month":{"name":"海蓝之谜润唇霜 9g","barcode":"747930112433","cit_code":"GP1004297","count":"44","amount":"12336.90"}}},{"key":"科颜氏金盏花植萃爽肤水套装 500ml+230ml+100ml","value":{"today":{"name":"科颜氏金盏花植萃爽肤水套装 500ml+230ml+100ml","barcode":"4894374337598","cit_code":"GP1006126","count":"0","amount":"0.00"},"yesterday":{"name":"科颜氏金盏花植萃爽肤水套装 500ml+230ml+100ml","barcode":"4894374337598","cit_code":"GP1006126","count":"37","amount":"21320.28"},"month":{"name":"科颜氏金盏花植萃爽肤水套装 500ml+230ml+100ml","barcode":"4894374337598","cit_code":"GP1006126","count":"38","amount":"22068.36"}}},{"key":"欧舒丹乳木果润手霜四件装 30ml*4","value":{"today":{"name":"欧舒丹乳木果润手霜四件装 30ml*4","barcode":"3253581741580","cit_code":"GP1035435","count":"7","amount":"1253.36"},"yesterday":{"name":"欧舒丹乳木果润手霜四件装 30ml*4","barcode":"3253581741580","cit_code":"GP1035435","count":"36","amount":"5979.67"},"month":{"name":"欧舒丹乳木果润手霜四件装 30ml*4","barcode":"3253581741580","cit_code":"GP1035435","count":"51","amount":"7965.03"}}}]}]}',320);  
        //订单销售统计
        $order_sales = OrderService::OrderSales($this->params['platform_id']);
        //新用户
        $new_user = OrderService::newUser($this->params['platform_id']);
        //渠道
        $channel = OrderService::channel($this->params['platform_id']);
        //puv
        $puv = OrderService::puv();
       //商品
        $goods = OrderService::goods($this->params['platform_id']);
//        $data = array_merge($order_sales,$new_user,$channel,$puv,$goods);
        return $this->jsonSuccess($data);
    }


}
